package com.yun.zhong.fu.cloudauth.controller;


import com.fasterxml.jackson.annotation.JsonProperty;
import com.yun.zhong.fu.cloudauth.dto.EquireAreaCategoryQueryResp;
import com.yun.zhong.fu.cloudauth.feignclient.EquireServerFeignClient;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * .
 * <p>
 * 北京云锦汇智信息技术有限公司 版权所有Copyright (C) 2022
 * </p>
 * <p>
 * 简介说明: 测试类控制器
 *
 * @author 任璞
 * @since 2025/07/15 11:13
 */

@RestController
@RequestMapping("/test")
@RequiredArgsConstructor
public class TestController {
    private final EquireServerFeignClient feignClient;

    @PostMapping("/testFeignInterface")
    public List<EquireAreaCategoryQueryResp> testFeignInterface(@RequestBody @JsonProperty Map<String, String> map){
      return   feignClient.queryPage(map);

    }


    @GetMapping ("/testFeignInter")
    public String testFeignInter(@RequestParam String name){
        return   feignClient.testFeign(name);

    }



}
